﻿using System;
using System.Data.Entity;
using System.Data.Common;
using FCMS.Entities;

namespace FCMS.Data
{
    public class FCMSDbContext : DbContext
    {
        static FCMSDbContext()
        {
            Database.SetInitializer(new FCMSDbContexttInitializer());
        }

        public FCMSDbContext(DbConnection conn) : base(conn, true) { }
        public DbSet<User> Users { get; set; }

        public virtual void Commit()
        {
            base.SaveChanges();
        }
    }
}
